Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

include/FLAC/assert.h

00001 /* libFLAC - Free Lossless Audio Codec library
00002  * Copyright (C) 2001,2002,2003  Josh Coalson
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA  02111-1307, USA.
00018  */
00019 
00020 #ifndef FLAC__ASSERT_H
00021 #define FLAC__ASSERT_H
00022 
00023 /* we need this since some compilers (like MSVC) leave assert()s on release code (and we don't want to use their ASSERT) */
00024 #ifdef DEBUG
00025 #include <assert.h>
00026 #define FLAC__ASSERT(x) assert(x)
00027 #define FLAC__ASSERT_DECLARATION(x) x
00028 #else
00029 #define FLAC__ASSERT(x)
00030 #define FLAC__ASSERT_DECLARATION(x)
00031 #endif
00032 
00033 #endif

Generated on Sat Jan 25 10:44:46 2003 for FLAC by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002